package com.demo.employee;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class Address {
    
	private int hNo;
	private String street;
	private String city;
	private String country;

	@Column(name="H_NO",length=5)
	 public int gethNo() {
		return hNo;
	}

	@Column(name="STREET",length=50)
	public String getStreet() {
		return street;
	}

	@Column(name="CITY")
	public String getCity() {
		return city;
	}

	public String getCountry() {
		return country;
	}

	public void sethNo(int hNo) {
		this.hNo = hNo;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public void setCountry(String country) {
		this.country = country;
	}

}
